package flib;

import java.awt.Color;

import importExport.SVGLoader;

import org.w3c.dom.Element;

public class RoomType {
String label="room";
Color color=Color.GRAY;
boolean isPublic=false;
boolean isWarm=true;
public void load(Element element){
	label=element.getAttribute("label");
	setPublic(Boolean.valueOf(element.getAttribute("public")));
	setWarm(Boolean.valueOf(element.getAttribute("warm")));
	color=SVGLoader.getColorFromRGBString(element.getAttribute("color"));
}
public boolean isPublic() {
	return isPublic;
}
public void setPublic(boolean isPublic) {
	this.isPublic = isPublic;
}
public boolean isWarm() {
	return isWarm;
}
public void setWarm(boolean isWarm) {
	this.isWarm = isWarm;
}
}
